package chai.ning.inheritance;

public class Human {
	
	protected String name ;
	
	protected void eat( String foodName ) {
		System.out.println( this.name + "吃" + foodName );
	}
	
	public static void main(String[] args) {
		Human h = new Human();
		h.name = "王盼盼" ;
		h.eat( "八宝粥" );
	}

}
